<?php

/**
 * Optionalgroupsorder form base class.
 *
 * @method Optionalgroupsorder getObject() Returns the current form's model object
 *
 * @package    symfony
 * @subpackage form
 * @author     Your name here
 */
abstract class BaseOptionalgroupsorderForm extends BaseFormPropel
{
  public function setup()
  {
    $this->setWidgets(array(
      'idClientOrder'    => new sfWidgetFormInputHidden(),
      'idOptionalTarget' => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'idClientOrder'    => new sfValidatorPropelChoice(array('model' => 'Clientorder', 'column' => 'idOrder', 'required' => false)),
      'idOptionalTarget' => new sfValidatorPropelChoice(array('model' => 'Optionaltargetgroups', 'column' => 'idOptionalTargetGroups', 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('optionalgroupsorder[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    parent::setup();
  }

  public function getModelName()
  {
    return 'Optionalgroupsorder';
  }


}
